package com.jmb.apiplatform.service;


import com.jmb.apiplatform.common.PageResult;
import com.jmb.apiplatform.exception.ValidException;
import com.jmb.apiplatform.pojo.UserDao;
import com.jmb.apiplatform.pojo.UserVO;
import jakarta.servlet.http.HttpServletRequest;

/**
* @author jinmengbo
* @description 针对表【user】的数据库操作Service
* @createDate 2024-12-17 18:24:01
*/
public interface UserService  {

    void registerUserInfo(UserDao userDao) throws ValidException;

    UserDao loginUser(UserDao userDao) throws ValidException;

    void LoginOut(String key);

    void removeUserById(HttpServletRequest request, Integer userId) throws ValidException;

    void saveUser(UserDao userDao) throws ValidException;

    void changePwd(HttpServletRequest request, String oldPwd, String newPwd) throws ValidException;

    void pwdReset(Integer userId, String defaultPwd) throws ValidException;

    void modifyUser(UserDao userDao) throws ValidException;

    UserDao infoUserById(Integer userId) throws ValidException;

    PageResult<UserDao> listUser(UserVO userVO);
}
